package hust.hiepdv.javaproject.networking;
import hust.hiepdv.javaproject.constant.Constant;

import java.io.*;
import java.net.*;
import java.nio.ByteBuffer;

class UDPClient extends Thread implements Constant{
	
	private DatagramSocket clientSocket = null;
	byte[] sendData = new byte[DATAGRAM_SIZE];
	byte[] receiveData = new byte[DATAGRAM_SIZE];
	InetAddress serverIPAddress = null;
	UDPClientSend udpClientSend;
	UDPClientReceive udpClientReceive;
	private String clientID;
	
	public UDPClient(String clientID) throws Exception{
		this.clientID = clientID;
		clientSocket = new DatagramSocket();
		InetAddress IPAddress = InetAddress.getByName(SERVER_IP);		
	}
	
	public void run(){		
		udpClientSend = new UDPClientSend();
		udpClientReceive = new UDPClientReceive();
	}
	
	public int getPort(){
		return this.clientSocket.getPort();
	}
	
	class UDPClientSend extends Thread{
		public void run() {
		}
	}
	
	class UDPClientReceive extends Thread{
		public void run() {
		}
	}
}
